package com.zy1.mapper;
import java.util.List;
import com.zy1.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface Usermapper {
    public List<User> selectUser();
    @Select("select * from user where username=#{username} and password=#{password}")
    public User login(@Param("username") String username, @Param("password") String password);
    public User sss(int id);
    public void xxxx(@Param("username") String username, @Param("password" ) String password,@Param("id") int id);
    public void delete(int id);
    @Update("update user set username=#{username},password=#{password} where id=#{id}")
    public void update(@Param("username") String username, @Param("password" ) String password,@Param("id") int id);
    public List<User> selectby(@Param("username") String username,@Param("password") String password);
    public void insert(@Param("username") String username, @Param("password" ) String password,@Param("email") String email);
}
